package com.example.permissionservice.service;

import org.springframework.transaction.annotation.Transactional;

public interface PermissionService {
    @Transactional
    void bindDefaultRole(Long userId);

    String getUserRoleCode(Long userId);

    @Transactional
    void upgradeToAdmin(Long userId);

    @Transactional
    void downgradeToUser(Long userId);
}
